package com.vanceinfo.ecados.common;

import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerSorter;

public class CommonViewerSorter extends ViewerSorter {
	public static final int ID = 1;
	public static final ViewerSorter ID_ASC = new CommonViewerSorter(ID);
	public static final ViewerSorter ID_DESC = new CommonViewerSorter(-ID);

	private int sortType;

	private CommonViewerSorter(int sortType) {
		this.sortType = sortType;
	}

	public int compare(Viewer viewer, Object obj1, Object obj2) {
		return sortType;

	}
}
